package cn.sx.yys.blog.controller;

import cn.sx.yys.blog.entity.ArticleFirst;
import cn.sx.yys.blog.service.ArticleFirstService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (ArticleFirst)表控制层
 *
 * @author makejava
 * @since 2021-03-08 10:25:48
 */
@RestController
@RequestMapping("articleFirst")
public class ArticleFirstController {
    /**
     * 服务对象
     */
    @Resource
    private ArticleFirstService articleFirstService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public ArticleFirst selectOne(Integer id) {
        return this.articleFirstService.queryById(id);
    }

}
